﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace WebApplication1
{
    public partial class WebForm2 : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            string user = Request.QueryString["UserName"]; // get
            string paw = Request.QueryString["PassWord"];
             string user1 = Request.Params["TextBox1"]; // post
            string paw1 = Request.Params["TextBox2"];
            if (user == null) Response.Write($"<h1> post 欢迎您,{user1},你的密码是,{paw1}</h1>");
            if (user != null) Response.Write($"<h1> get 欢迎您,{user},你的密码是,{paw}</h1>");

        }
    }
}